<template>
  <div>
    <!-- 中间文字 -->
    <div class="section">
      <div class="center_conten">
        <p style="font-size: 40px">与您阅读这座城市</p>
        <p style="font-size: 20px">Reading the city with you</p>
      </div>
      <!-- 中间按钮 -->
      <div class="center_button" @click="$router.push('/category')">
        <el-button round>了解详情→</el-button>
      </div>
      <!-- 轮播图 -->
      <div class="section_card">
        <el-carousel :interval="6000">
          <el-carousel-item v-for="item in imgList" :key="item.id">
            <img :src="item.idView" height="100%" width="100%" />
          </el-carousel-item>
        </el-carousel>
      </div>
      <bottom-bar />
    </div>
  </div>
</template>
<script>
import bottomBar from '@/components/bottomBar.vue'
export default {
  components: { bottomBar },
  data() {
    return {
      imgList: [
        { id: 0, idView: require('../../assets/img/pic1.png') },
        { id: 1, idView: require('../../assets/img/pic2.png') },
        { id: 2, idView: require('../../assets/fangzi1.jpg') },
        { id: 3, idView: require('../../assets/fangzi2.jpg') }
      ]
    }
  },
  methods: {}
}
</script>
<style scoped>
.el-carousel__item h3 {
  /* color: #475669; */
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
::v-deep .el-carousel__container {
  height: 670px;
}
.section {
  background-color: #333;
  position: relative;
}
.input-with-select {
  z-index: 999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
}
.center_conten {
  position: absolute;
  top: 20%;
  left: 40%;
  z-index: 999;
  color: #fff;
  margin: auto;
  text-align: center;
}
.center_button {
  position: absolute;
  top: 50%;
  left: 43%;
  z-index: 999;
  color: #fff;
  margin: auto;
  text-align: center;
}
.el-button.is-round {
  width: 200px;
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
}
</style>
